//
//  DefaultPreferenceUtil.m
//  MyCloudMusic
//
//  Created by xiaolong on 2024/5/5.
//

#import "DefaultPreferenceUtil.h"

static NSString *const Terms_Service = @"Terms_Service";

@implementation DefaultPreferenceUtil

+ (BOOL)isAcceptTermsServiceAgreement{
    
    if([[NSUserDefaults standardUserDefaults] objectForKey:Terms_Service] == nil){
        return NO;
    }
    return [[NSUserDefaults standardUserDefaults] boolForKey:Terms_Service];
}


+ (void)setAeecptTermsServiceAgreement:(BOOL)data{
    [[NSUserDefaults standardUserDefaults] setBool:data forKey:Terms_Service];
    
    [[NSUserDefaults standardUserDefaults] synchronize];
}

@end
